<?php

namespace App\Providers;

use App\Events\In\BillingFinished;
use App\Events\In\CashBillingFinished;
use App\Events\In\NormalBuyingFinished;
use App\Events\In\StudentAppointmentStatusChanged;
use App\Events\In\GiftBillingFinished;
use App\Listeners\OnBillingFinished;
use App\Listeners\OnCashBillingFinished;
use App\Listeners\OnNormalBuyingFinished;
use App\Listeners\OnStudentAppointmentStatusChanged;
use App\Listeners\OnLuckyBagStudentAppointmentStatusChanged;
use App\Listeners\InviteOneOnOneOnStudentAppointmentStatusChanged;
use App\Listeners\OnGiftBillingFinished;
use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        NormalBuyingFinished::class => [
            OnNormalBuyingFinished::class
        ],
        StudentAppointmentStatusChanged::class => [
            OnStudentAppointmentStatusChanged::class,
            OnLuckyBagStudentAppointmentStatusChanged::class,
            InviteOneOnOneOnStudentAppointmentStatusChanged::class,
        ],
        BillingFinished::class => [
            OnBillingFinished::class,
        ],
        CashBillingFinished::class => [
            OnCashBillingFinished::class,
        ],
        GiftBillingFinished::class => [
            OnGiftBillingFinished::class,
        ],
    ];
}
